package top.ytazwc.uml.aggregation;

/**
 * @author 花木凋零成兰
 * @title Computer
 * @date 2024/4/23 22:20
 * @package top.ytazwc.uml.aggregation
 * @description 电脑类
 */
public class Computer {
    private Mouse mouse;        // 鼠标可以和computer分离
    private Monitor monitor;    // 显示器也可以和computer分离

    public void setMouse(Mouse mouse) {
        this.mouse = mouse;
    }

    public void setMonitor(Monitor monitor) {
        this.monitor = monitor;
    }
}
